home *** CD-ROM | disk | FTP | other *** search
- ; ===================================
- ;
- ; OnGo installer script
- ; $VER: OnGo-Install 1.4 (7.7.96)
- ;
- ; Copyright © 1996 Tak Tang
- ;
- ; ===================================
-
- ; ==== English strings
-
- (set #bad-kick-msg "OnGo requires AmigaOS 2.04 or above.")
-
- (set #hello-msg
- (cat "\n\nThank you for trying OnGo, the best StartButton and Virtual"
- " Screen manager for the Amiga.\n\nNothing will be deleted from"
- " your system with this installation program.\n\nIf you don't"
- " understand any part of the installation, click on the \"Help\" "
- "gadget found throughout the installation for more information."
- "\n\nCLICK TO PROCEED"))
-
- (set #alltime-msg
- (cat "\n\nDo you want OnGo to be run every "
- "time you turn on your machine?"))
-
- (set #alltime-help
- (cat "\n\nSelecting YES will copy OnGo to your WBStartUp drawer, where"
- " it will be started every time you boot your machine. Selecting"
- " NO will copy OnGo to your SYS:Tools/Commodities drawer."))
-
- (set #choosetool-msg
- (cat "\nWhere shall I copy OnGo (the main program)?"))
-
- (set #choosetool-help
- (cat "\nIf you want OnGo to start automatically each time you reboot,"
- " place OnGo in SYS:WBStartUp.\n\nOtherwise, select the directory"
- " where you store all your commodities.\n\nThis is usually"
- " SYS:Tools/Commodities."))
-
- (set #chooseprefs-msg
- (cat "\nWhich Configuration should I install?"))
-
- (set #chooseprefs-help
- (cat "\nThe Magic setup contains a menu for all the programs contained"
- " in the AmigaMagic pack.\n\nThe Win95 setup contains a Win95 like"
- " menu with many programs from the AmigaMagic pack, and many"
- " commercial, shareware and PD programs."))
-
- (set #chooseicon-msg
- (cat "\nWhich set of icons should I install?"))
-
- (set #chooseicon-help
- (cat "\nIt doesnt make any differenct, I'm not much of an artist. If"
- " you have some of your own (MWB, NI etc...) they would be "
- "gratefully received"))
-
- (set #chooselook-msg
- (cat "\nChoose style of menu."))
-
- (set #chooselook-help
- (cat "\nThe default look is 3DLOOK, which draws menus as a raised bevel"
- " box.\n\nNEWLOOK produces menus similar to the standard workbench "
- "menus - black on white, or whatever you have set them to.\n\nXLOOK"
- " is like 3DLOOK, but recesses the items when they are active. "
- "This requires more space."))
-
- (set #chooseshort-msg
- (cat "\nActivate ShortBench patch?"))
-
- (set #chooseshort-help
- (cat "\nShortbench prevents icons on the workbench backdrop from"
- " being obscured by the OnGo bar.\n\nThis does not work well"
- " with FullBench patches, nor does it make sense to use it if"
- " you do not use a backdrop workbench."))
-
- (set #choosepos-msg
- (cat "\nHave the OnGo window appear at the top or bottom of the screen?"))
-
- (set #choosepos-help
- (cat "\nThe OnGo can appear at the bottom of the screen, like Win95,"
- " or you can opt to have it at the top of the screen, like a"
- " toolbar in a word processor."))
-
- (set #exit-msg
- (cat "You can run OnGo now - just double click on the icon, or reboot"
- " your machine.\n\nEnjoy OnGo!"))
-
- (set #tooldir "SYS:WBStartUp")
- (set #prefdir "SYS:Prefs")
- (set #prefsch 0)
- (set #iconch 0)
- (set #shortch 0)
- (set #lookch 0)
- (set #posch 1)
-
-
- ; ===== Check Kickstart Version
-
-
- (if (< (getversion "LIBS:version.library") (* 37 65536))
- (abort #bad-kick-msg)
- )
-
- (message #hello-msg)
-
- (if (exists "SYS:Utilities/MultiView" (NOREQ))
- (set #Guide "SYS:Utilities/MultiView")
- (set #Guide "SYS:Utilities/AmigaGuide")
- )
-
- ; ===== Ask Questions
-
- (if (= 1 @user-level)
- (if (= 0 (askbool (prompt #alltime-msg) (help #alltime-help) ) )
- (set #tooldir "SYS:Tools/Commodities")
- )
- )
-
- (if (= 2 @user-level)
- (set #tooldir
- (askdir (prompt #choosetool-msg)
- (help #choosetool-help)
- (default #tooldir)
- )
- )
- )
-
- (if (< 0 @user-level)
- (set #prefsch
- (askchoice (prompt #chooseprefs-msg)
- (help #chooseprefs-help)
- (choices "Magic" "Win95")
- )
- )
- )
-
- (if (= #prefsch 0)
- (set #prefsfile "OnGo.Config")
- (set #prefsfile "OnGo.Config.Win95")
- )
-
- (if (< 0 @user-level)
- (set #iconch
- (askchoice (prompt #chooseicon-msg)
- (help #chooseicon-help)
- (choices "Flip" "Squish" "Menu")
- )
- )
- )
-
- (select #iconch
- (set #iconfile "Icons/Flip")
- (set #iconfile "Icons/Squish")
- (set #iconfile "Icons/Menu")
- )
-
- (if (< 1 @user-level)
- (set #lookch
- (askchoice (prompt #chooselook-msg)
- (help #chooselook-help)
- (choices "3DLook" "NewLook" "XLook")
- )
- )
- )
-
- (select #lookch
- (set #look "3DLOOK")
- (set #look "NEWLOOK")
- (set #look "XLOOK")
- )
-
- (if (< 1 @user-level)
- (set #shortch
- (askbool (prompt #chooseshort-msg)
- (help #chooseshort-help)
- )
- )
- )
-
- (if (< 1 @user-level)
- (set #posch
- (askchoice (prompt #choosepos-msg)
- (help #choosepos-help)
- (default 1)
- (choices "Top" "Bottom")
- )
- )
- )
-
-
- ; ===== Install main program
-
- (copyfiles
- (prompt "Copying OnGo")
- (help @copyfiles-help)
- (source "OnGo")
- (dest #tooldir)
- (confirm)
- )
-
- (copyfiles
- (prompt "Copying OnGo.info")
- (help @copyfiles-help)
- (source (cat #iconfile ".info") )
- (newname "OnGo.info")
- (dest #tooldir)
- )
-
- (tooltype
- (dest (tackon #tooldir "OnGo"))
- (settooltype "SHORTBENCH" (select #shortch "FALSE" "TRUE"))
- (settooltype "LOOK" #look)
- (settooltype "POSITION" (select #posch "TOP" "BOTTOM"))
- )
-
-
- ; ===== Install prefs program
-
- (copyfiles
- (prompt "Copying OnGo-Prefs")
- (help @copyfiles-help)
- (source "OnGo-Prefs")
- (dest #prefdir)
- (confirm)
- )
-
- (copyfiles
- (prompt "Copying OnGo-Prefs.info")
- (help @copyfiles-help)
- (source (cat #iconfile "-Prefs.info") )
- (newname "OnGo-Prefs.info")
- (dest #prefdir)
- )
-
- (tooltype
- (dest (tackon #prefdir "OnGo-Prefs") )
- (setdefaulttool #Guide)
- )
-
- ; ===== Install config files
-
- (copyfiles
- (prompt "Copying OnGo.Config")
- (help @copyfiles-help)
- (source #prefsfile)
- (dest "ENVARC:")
- (newname "OnGo.Config")
- (confirm)
- )
-
- (copyfiles
- (prompt "Copying OnGo.Config")
- (help @copyfiles-help)
- (source #prefsfile)
- (dest "ENV:")
- (newname "OnGo.Config")
- (infos)
- )
-
- ; ==== Exit
-
- (exit #exit-msg)
-
- ; ==== End of installer script
-
-